<?php
/**
 *
 * @author Quentin Laujac, Charles Hurtevent
 *
 */
require_once ("../enums/enums.php");
require_once ("../services/AuthentificationService.php");
require_once ("../services/ClientService.php");
require_once ("../bean/data/Commande.php");
require_once ("../bean/data/Utilisateur.php");
require_once ("../bean/data/Lieu.php");

session_start ();
$clientService = new ClientService ();
$client = $_SESSION ['login'];
$listCommande = $clientService->getHistoriqueCommande ( $client );
$listLieu = $clientService->getListLieuConnu ();
$_SESSION ['listCommande'] = $listCommande;
$_SESSION ['listLieu'] = $listLieu;
$_SESSION['listArticle'] = $clientService->getListArticle();
$_SESSION['idCommande'] = $_GET["var"];
header ( 'Location: ../web/popUp_editer_commande.php' );
exit ();
